import Vue from 'vue'
import App from './App.vue'
import router from './routers'
import store from './stores'

//导入mock.js
import './mock/mock.js'
Vue.config.productionTip = false

import axios from 'axios'
Vue.prototype.axios = axios

//全局注册滚动组件
import Scroller from '@/components/Scroller/Scroller.vue'
Vue.component('Scroller', Scroller)

//全局注册loading CSS3 组件
import Loading from '@/components/Loading/Loading.vue'
Vue.component('Loading', Loading)

//全局引入swiper
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/css/swiper.css'
Vue.use(VueAwesomeSwiper)

//点击图片预览
import preview from 'vue-photo-preview'
import 'vue-photo-preview/dist/skin.css'
Vue.use(preview)
new Vue({
	router,
	store,
	render: h => h(App)
}).$mount('#app')
